#include "bsp_board.h"

/* 16进制转字符串 */
void hex_to_str(char *hex,  int hex_len, char *str)
{

    int i, pos=0;

    for(i=0; i<hex_len; i++)

    {

        sprintf(str+pos,  "%02x", hex[i]);

        pos +=2;

    }

}
unsigned int be32_to_cpu(unsigned int x)
{
	unsigned char *p = (unsigned char *)&x;
	unsigned int le;
	le = (p[0] << 24) + (p[1] << 16) + (p[2] << 8) + (p[3]);
	return le;
}


/* 板级硬件初始化 */
void bsp_board_init(void)
{
	bsp_delay_init();
	bsp_debug_config();
	bsp_oled_init();
//	SystickInit();

}
